﻿using dis.sys.hw1.Contract;
using dis.sys.hw1.Model;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZooKeeperNet;

namespace dis.sys.hw1.Service
{
    public class DelegateHotelService : IDelegateHotelService
    {
        private readonly ServiceLog _log = new ServiceLog(typeof(DelegateHotelService), true);
        public ZooKeeper Replicator { get; set; }
        
        public DelegateHotelService()
        {
        }

        public DelegateHotelService(ZooKeeper replicator)
        {
            Replicator = replicator;
        }

        public IList<Hotel> GetAvailableRooms(DateTime fromDate, DateTime toDate, double minStars, double minRating)
        {
            return null;
        }

        public double GetMinStars()
        {
            double minStars = 0;
            _log.Debug("Sent Hotel Stars " + minStars);
            return minStars;
        }

        public double GetMinRating()
        {
            double minRating = 0;
            _log.Debug("Sent Hotel Rating " + minRating);
            return minRating;
        }

        public bool HasHotelsInQueryRange(double minStars, double minRating)
        {
            throw new NotImplementedException();
        }


        public bool IsUp()
        {
            throw new NotImplementedException();
        }
    }
}
